package com.tonny.tweet.dao;

import com.tonny.tweet.model.User;

public interface UserDao {
    int insert(User user);
    
    long countByUserName(String username);
    
    User queryByUserName(String username);
    
    User queryByUserNameAndPassword(String username, String password);
    
    int update(User user);
}
